import VueRouter from 'vue-router'
import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import NewsList from './components/news/NewsList.vue'
import NewsInfo from './components/news/NewsInfo.vue'
import ImgList from './components/img/ImgList.vue'
import ImgInfo from './components/img/ImgInfo.vue'
import ShopList from './components/shop/ShopList.vue'
import ShopInfo from './components/shop/ShopInfo.vue'
import ShopDesc from './components/shop/ShopDesc.vue'
import ShopCom from './components/shop/ShopCom.vue'

var router = new VueRouter({
    routes: [
        { path: '/', redirect: '/home' },
        { path: '/home', component: HomeContainer },
        { path: '/member', component: MemberContainer },
        { path: '/shopcar', component: ShopcarContainer },
        { path: '/search', component: SearchContainer },
        { path: '/home/newslist', component: NewsList },
        { path: '/newsinfo/:id', component: NewsInfo },
        { path: '/home/imglist', component: ImgList },
        { path: '/home/imginfo/:test', component: ImgInfo },
        { path: '/home/shoplist', component: ShopList },
        { path: '/home/shopinfo/:id', component: ShopInfo },
        { path: '/home/shopdesc/:id', component: ShopDesc },
        { path: '/home/shopcom/:id', component: ShopCom },
        { name: 'test', path: '/home/shopinfo/:id', component: ShopInfo },

    ],
    linkActiveClass: 'mui-active'
})
export default router